package com.wisely.highlight_springmvc4.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
	public  HelloController() {
		System.out.println("hello controller");
	}
	
	@RequestMapping("/index")
	public String hello(){
		System.out.println("hello method");
	    return "index";
	}
	
	
	@RequestMapping("/bx")
	@ResponseBody
	public String validation(){
		return "ok";
	}
}
